package com.shiwaixiangcun.customer.module.heath

import com.google.gson.annotations.SerializedName


/**
 * Author   Administrator
 * Date     2018/1/22
 * Desc     eg
 */

data class CommonListEntity<out T>(
        @SerializedName("data") val data: List<T>,
        @SerializedName("message") val message: String, //操作成功
        @SerializedName("responseCode") val responseCode: Int, //1001
        @SerializedName("success") val success: Boolean //true
)

data class HealthFamilyData(
        @SerializedName("avatar") val avatar: String, //http://resource.shiwaixiangcun.cn/group1/M00/01/89/rBKx51orekSAZAeVAAAx_1k1wQA659.jpg
        @SerializedName("customerId") val customerId: Long, //310
        @SerializedName("name") val name: String,
        @SerializedName("relationship") val relationship: String, //我
        @SerializedName("totalStatus") val totalStatus: String //NORMAL
)


data class CommonEntity<out T>(
        @SerializedName("data") val data: T,
        @SerializedName("message") val message: String, //操作成功
        @SerializedName("responseCode") val responseCode: Int, //1001
        @SerializedName("success") val success: Boolean //true
)


/**
 * 健康数据
 */
data class HealthData(
        @SerializedName("bloodCreateTime") val bloodCreateTime: Long, //1516603703000
        @SerializedName("bloodStatus") val bloodStatus: String, //NORMAL
        @SerializedName("bloodSugar") val bloodSugar: Double, //6.1
        @SerializedName("bmi") val bmi: Double, //19.5
        @SerializedName("bmiCreateTime") val bmiCreateTime: Long, //1516603654000
        @SerializedName("bmiStatus") val bmiStatus: String, //NORMAL
        @SerializedName("heartRate") val heartRate: Int, //99
        @SerializedName("heartRateStatus") val heartRateStatus: String, //NORMAL
        @SerializedName("heartRateTime") val heartRateTime: Long, //1516603708000
        @SerializedName("height") val height: Int, //160
        @SerializedName("lowLipo") val lowLipo: Double, //2
        @SerializedName("pressureCreateTime") val pressureCreateTime: Long, //1516603661000
        @SerializedName("pressureStatus") val pressureStatus: String, //NORMAL
        @SerializedName("relaxationBlood") val relaxationBlood: Int, //80
        @SerializedName("shrinkBlood") val shrinkBlood: Int, //110
        @SerializedName("sugarCreateTime") val sugarCreateTime: Long, //1516603669000
        @SerializedName("sugarStatus") val sugarStatus: String, //NORMAL
        @SerializedName("testStatus") val testStatus: String, //KF
        @SerializedName("topLipo") val topLipo: Double, //2
        @SerializedName("totalCholesterol") val totalCholesterol: Double, //4
        @SerializedName("triglyceride") val triglyceride: Double, //1
        @SerializedName("weight") val weight: Double //50
)


/**
 * 健康动态
 */
data class HealthDynamic(
        @SerializedName("elements") val elements: List<HealthDynamicData>,
        @SerializedName("page") val page: Int, //1
        @SerializedName("size") val size: Int, //15
        @SerializedName("totalAmount") val totalAmount: Int, //1
        @SerializedName("totalPages") val totalPages: Int //1
)

data class HealthDynamicData(
        @SerializedName("serviceData") val serviceData: String, //紧急预警
        @SerializedName("serviceDate") val serviceDate: String, //2017-11-17
        @SerializedName("serviceType") val serviceType: String //预警服务
)


/**
 * 体检报告
 */
data class HealthReport(
        @SerializedName("elements") val elements: List<HealthReportData>,
        @SerializedName("page") val page: Int, //1
        @SerializedName("size") val size: Int, //20
        @SerializedName("totalAmount") val totalAmount: Int, //6
        @SerializedName("totalPages") val totalPages: Int //1
)

data class HealthReportData(
        @SerializedName("checkTime") val checkTime: String, //2018-02-02
        @SerializedName("fileName") val fileName: String, //abc
        @SerializedName("id") val id: Long //77
)


/**
 * 健康测评
 */

data class Evaluation(
        @SerializedName("elements") val elements: List<EvaluationData>,
        @SerializedName("page") val page: Int, //1
        @SerializedName("size") val size: Int, //20
        @SerializedName("totalAmount") val totalAmount: Int, //1
        @SerializedName("totalPages") val totalPages: Int //1
)

data class EvaluationData(
        @SerializedName("assessmentType") val assessmentType: String, //Chinese_Medicine
        @SerializedName("createDate") val createDate: String, //刚刚
        @SerializedName("id") val id: Long //99
)